-- GENERATED SPELL FOR [Vyragosa] --


function spell0_32630(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(47425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32630', 10500, 1)
end

function spell1_32630(pUnit, Event) --@Frost Cleave,n/a--
pUnit:FullCastSpellOnTarget(51857,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32630', 8338, 1)
end

function Sorts_32630(pUnit, Event)
local choix_sorts_32630 = math.random(0, 1)
if choix_sorts_32630 == 0 then
pUnit:RegisterEvent('spell0_32630', 1, 1)
end
if choix_sorts_32630 == 1 then
pUnit:RegisterEvent('spell1_32630', 1, 1)
end
end

function mob32630_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32630', math.random(1500, 3000), 1)
end

function mob32630_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32630_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32630_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32630, 1, 'mob32630_Action')
RegisterUnitEvent(32630, 2, 'mob32630_Leave')
RegisterUnitEvent(32630, 3, 'mob32630_Kill')
RegisterUnitEvent(32630, 4, 'mob32630_Die')
